#include "SelectSvr.hpp"


// ./SelectSvr PORT
int main(int argc, char* argv[]){

    if(argc != 2){
        std::cout << "Usage ./SelectSvr Port" << std::endl;
        return 1;
    }
    
    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<SelectSvr> psvr = std::make_unique<SelectSvr>(port);
    
    psvr->Init();
    psvr->Loop();

    return 0;
}
